<template>
  <h2>home</h2>
  <h4>{{ hw }}</h4>

  <h3 @click="getAllTodo">getAllData</h3>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { mapState, mapActions } from 'vuex'
export default defineComponent({
  name: 'Home',

  methods: {
    ...mapActions(['getAllTodo']),
  },
  computed: {
    ...mapState(['hw']),
  },
})
</script>
